<?php
/**
 * ControllerName.php
 * 
 * @category   Naneau
 * @package    Naneau_View_Helper
 * @copyright  Copyright (c) 2007 Maurice Fonk - http://naneau.nl
 * @version    0.1
 */

/**
 * Naneau_View_Helper_ControllerName
 * 
 * a view helper to retrieve the current controller name
 *
 * @category   Naneau
 * @package    Naneau_View_Helper
 * @copyright  Copyright (c) 2007 Maurice Fonk - http://naneau.nl
 */
class Naneau_View_Helper_ControllerName {
    /**
     * retrieve the current controllername
     *
     * @return string
     */
    public function controllerName() {
        $frontController = Zend_Controller_Front::getInstance();
        $request = $frontController->getRequest();
        return $request->getControllerName();
    }
}